#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include "ui_mainwindow.h"

#include "../plok-phonon/player_phonon.h"
#include "../plok-phonon/audio_file_phonon.h"

#include "Qt/qdir.h"

#include <QSharedPointer>

namespace plok
{

    class MainWindow : public QMainWindow
    {
        Q_OBJECT

    public:
        MainWindow ();
        virtual ~MainWindow();
    private:


        Ui::MainWindow ui;

        std::vector<  QSharedPointer<Audio_file_phonon> > m_playlist;

        plok::Player_phonon m_player;
    private Q_SLOTS:
        void on_actionOpen_file_triggered (void);
        void on_actionOpen_dir_triggered (void);

        void on_playButton_clicked (void);
        void on_stopButton_clicked (void);

        void on_playlistWidget_itemActivated (QListWidgetItem* item);

        void on_timeSlider_valueChanged (int value);

        void on_updateTime (qint64 time);

        void loadPlaylist (void);
    };

}

#endif // MAINWINDOW_H
